//
//  colorsBootcamp.swift
//  SwiftUiExercise
//
//  Created by 徐鹏 on 2023/6/23.
//

import SwiftUI

struct colorsBootcamp_05: View {
    var body: some View {
        RoundedRectangle(cornerRadius: 25.0)
            .fill(
                // Color(UIColor.secondarySystemBackground)
                Color("CustomColor") //在Assets 资产里设置
            )
            .frame(width: 300,height: 200)
            .shadow(color: Color("CustomColor").opacity(0.3), radius: 10,x: -20,y: -20)
    }
}

struct colorsBootcamp_Previews: PreviewProvider {
    static var previews: some View {
        colorsBootcamp_05()
    }
}
